package com.ruoyi.web.ydz.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地区对象 district_base
 * 
 * @author ruoyi
 * @date 2024-11-11
 */
public class DistrictBase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区编号 */
    private String districtId;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String districtName;

    /** 上级编号 */
    @Excel(name = "上级编号")
    private String districtParentId;

    /** 地区等级 */
    @Excel(name = "地区等级")
    private String districtLevel;

    /** 区号 */
    @Excel(name = "区号")
    private String districtCitycode;

    /** 邮编 */
    @Excel(name = "邮编")
    private String districtZipcode;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal districtLng;

    /** 维度 */
    @Excel(name = "维度")
    private BigDecimal districtLat;

    /** 地区排序 */
    @Excel(name = "地区排序")
    private String districtSort;

    private List<DistrictBase> subordinates;

    public List<DistrictBase> getSubordinates() {
        return subordinates;
    }

    public void setSubordinates(List<DistrictBase> subordinates) {
        this.subordinates = subordinates;
    }

    public void setDistrictId(String districtId)
    {
        this.districtId = districtId;
    }

    public String getDistrictId() 
    {
        return districtId;
    }
    public void setDistrictName(String districtName) 
    {
        this.districtName = districtName;
    }

    public String getDistrictName() 
    {
        return districtName;
    }
    public void setDistrictParentId(String districtParentId) 
    {
        this.districtParentId = districtParentId;
    }

    public String getDistrictParentId() 
    {
        return districtParentId;
    }
    public void setDistrictLevel(String districtLevel) 
    {
        this.districtLevel = districtLevel;
    }

    public String getDistrictLevel() 
    {
        return districtLevel;
    }
    public void setDistrictCitycode(String districtCitycode) 
    {
        this.districtCitycode = districtCitycode;
    }

    public String getDistrictCitycode() 
    {
        return districtCitycode;
    }
    public void setDistrictZipcode(String districtZipcode) 
    {
        this.districtZipcode = districtZipcode;
    }

    public String getDistrictZipcode() 
    {
        return districtZipcode;
    }
    public void setDistrictLng(BigDecimal districtLng) 
    {
        this.districtLng = districtLng;
    }

    public BigDecimal getDistrictLng() 
    {
        return districtLng;
    }
    public void setDistrictLat(BigDecimal districtLat) 
    {
        this.districtLat = districtLat;
    }

    public BigDecimal getDistrictLat() 
    {
        return districtLat;
    }
    public void setDistrictSort(String districtSort) 
    {
        this.districtSort = districtSort;
    }

    public String getDistrictSort() 
    {
        return districtSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("districtId", getDistrictId())
            .append("districtName", getDistrictName())
            .append("districtParentId", getDistrictParentId())
            .append("districtLevel", getDistrictLevel())
            .append("districtCitycode", getDistrictCitycode())
            .append("districtZipcode", getDistrictZipcode())
            .append("districtLng", getDistrictLng())
            .append("districtLat", getDistrictLat())
            .append("districtSort", getDistrictSort())
            .toString();
    }
}
